package com.pig4cloud.pigx.wxApi.config;

/**
 * API 响应码 TODO 待完成
 */
public enum ApiResponseCode {

	/**
	 * 成功
	 */
	SUCCESS(0, "成功"),

	/**
	 * 失败
	 */
	FAILED(-1, "失败"),
	API_TOKEN_ERROR(2001, "用户未登录！"),
	
	UERNAME_OR_PASSWORD_ERROR(100001, "用户名或密码错误"),
	VERIFY_CODE_ERROR(10002, "验证码错误"),
	USER_IS_NOT_EXIST(10003, "用户不存在"), 
	USER_EXIST_ERROR(10004, "该手机号已注册！"),
	USERNAME_EXIST_ERROR(100041, "该用户名已被占用！"),
	USER_IS_NOT_MATCH_ERROR(10005, "用户ID与当前登录用户不匹配！"),
	USER_CERT_EXIST_ERROR(10005, "认证资料已存在！"),
	EMAIL_EXIST_ERROR(10006, "该邮箱已被注册！"),

	OLD_PASSWORD_ERROR(10007, "原密码错误"),
	USERNAME_USED_ERROR(10008, "用户名被占用！"),
	MOBILE_USED_ERROR(10008, "手机号被占用！"),
	LICENSE_IS_NOT_EXIST(10009, "License不存在！"),
	UNSUBSCRIBED(10010, "订单不存在！"),
	OUT_OF_DISK_SPACE(10011, "云存储空间不足！"),
	LESS_THAN_USED(10012, "分配的空间小于已使用的空间！"),
	OUT_OF_USER_NUM(10013, "您的团队成员数量已达上限"),
	LICENSE_IS_EXIST(10014, "该用户已分配过证书！"),
	LICENSE_IS_NOT_SUPPORT(10015, "该用户已分配过证书！"),
	LICENSE_IS_NOT_SUPPORT_TRANSFER_TO_NOW(10016, "企业版子账户不能转让给当前用户！"),
	LICENSE_IS_NOT_SUPPORT_TRANSFER_TO_SELF(10017, "企业版子账户不能转让给自己！"),

	JOB_SEND_PARAM_MISS_ERROR(3000, "职位ID和简历ID不能为空！"),
	JOB_COLLECT_PARAM_MISS_ERROR(3000, "职位ID和用户ID不能为空！"),
	RESUME_COLLECT_PARAM_MISS_ERROR(3000, "简历编号和用户ID不能为空！"),

	JOB_SEND_ID_PARAM_MISS_ERROR(3000, "职位发送Id不能为空！");
	

	public Integer code;
	public String message;

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	ApiResponseCode(Integer code, String message) {
		this.code = code;
		this.message = message;
	}
}
